from controllers.index import index_page
from controllers.member import member_page
from application import app
from flask_debugtoolbar import DebugToolbarExtension
from common.libs.UrlManager import UrlManager
# 拦截器和错误处理器  请求之前执行
from interceptors.Auth import *
from interceptors.errorHander import *

toolbar = DebugToolbarExtension(app)

app.register_blueprint(index_page, url_prefix="/")
app.register_blueprint(member_page, url_prefix="/member")
app.add_template_global(UrlManager.buildStaticUrl, "buildStaticUrl")
app.add_template_global(UrlManager.buildUrl, "buildUrl")
